﻿export default url => {
    const crud = window.$crud(url)
    crud.updateTask =(id)=> window.$axios({
        url: `${url}/datatask/${id}`,
        method: 'put'
    })
    crud.deleteTenants =(id,params)=> window.$axios({
        url: `${url}/deleteTenant/${id}`,
        method: 'delete',
        params:params
    })

    return {
        ...crud
    }
}